package com.example.demo.factoryMode.factoryMethod;

public class Consumer {

    public static void main(String[] args) {

        Car car = new BoMaFactory().getCar();
        Car car1 = new AoDiFactory().getCar();

        car.name();
        car1.name();

    }

}
